package com.easyidea.its.domain.service.department;

import java.util.Collection;
import java.util.List;

import com.easyidea.its.domain.model.system.Department;
import com.easyidea.its.domain.service.base.BaseService;

public interface DepartmentService extends BaseService<Department> {
 /**
  * 根据部门属性分页查询部门数据
  * @param dept
  * @param startAtIndex
  * @param pageSize
  * @return
  */
 List<Department> getDepartments(Department dept,  int startAtIndex, int pageSize);
 /**
  * 根据部门属性查部门数据总数
  * @param dept
  * @return
  */ 
 int getDeparmentsCount(Department dept);
 /**
  * 是否存在相同部门名称
  * @param deptName
  * @param id
  * @return
  */
 boolean hasSameDeptName(String deptName, Integer id);
 /**
  * 
  * @param id
  */
 void removeDepartment(Integer id);
 /**
  * 
  * @return
  */
 Collection<Department> getAllDepartments();
}
 